<?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 *
 * @package    symfony
 * @subpackage plugin
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardUser.php 9999 2008-06-29 21:24:44Z fabien $
 */
class sfGuardUser extends PluginsfGuardUser {

    public function getNroVentas() {

        $criteria = new Criteria();
        $criteria->add(VentasPeer::VTA_USUARIO, $this->getId());

        $nroVentas = VentasPeer::doCount($criteria);
        return $nroVentas;
    }
    
    

}

sfPropelBehavior::add('sfGuardUser', array('audit'));

